Generating Readable Unit Tests for Guava

نویسندگان

  • Ermira Daka
  • José Campos
  • Jonathan Dorn
  • Gordon Fraser
  • Westley Weimer
چکیده

Unit tests for object-oriented classes can be generated automatically using search-based testing techniques. As the search algorithms are typically guided by structural coverage criteria, the resulting unit tests are often long and confusing, with possible negative implications for developer adoption of such test generation tools, and the difficulty of the test oracle problem and test maintenance. To counter this problem, we integrate a further optimization target based on a model of test readability learned from human annotation data. We demonstrate on a selection of classes from the Guava library how this approach produces more readable unit tests without loss of coverage.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Guava Waste to Sustain Guava (Psidium guajava) Agroecosystem: Nutrient “Balance” Concepts

The Brazilian guava processing industry generates 5.5 M Mg guava waste year(-1) that could be recycled sustainably in guava agro-ecosystems as slow-release fertilizer. Our objectives were to elaborate nutrient budgets and to diagnose soil, foliar, and fruit nutrient balances in guava orchards fertilized with guava waste. We hypothesized that (1) guava waste are balanced fertilizer sources that ...

متن کامل

Repellent effect of guava leaf volatiles on settlement of adults of citrus psylla, Diaphorina citri Kuwayama, on citrus

The Asiatic citrus psyllid (Diaphorina citri Kuwayama [Hemiptera: Sternorrhyncha: Psyllidae] is a vector of huanglongbing (citrus greening), a devastating disease of citrus caused by phloem-limited bacteria. Growing guava (Psidium guajava) as an intercrop appears to be a successful means of reducing psyllid numbers within citrus orchards; however, the mechanism by which such a reduction is achi...

متن کامل

Adsorption Performance of Low-cost Java Plum Leaves and Guava Fruits as Natural Adsorbents for Removal of Free Fatty Acids from Coconut Oil

This study assesses the adsorption performance of Java plum leaves and guava fruits based adsorbents as natural products widely available in Aceh, Indonesia. These renewable adsorbents were employed to remove free fatty acids (FFAs) that cause the rancid odor in coconut oil. The adsorption tests were carried out at three different doses (50, 75, 100 g) and seven agitating periods (1, 2, 3, 4, 5...

متن کامل

MULTICRITERION SYNTHESIS OF INTELLIGENT CONTROL SYSTEMS OF GENERATING UNIT OF NUCLEAR POWER STATION

The paper is devoted to solution of some problems in nuclear power station generating unit intellectual control systems using genetic algorithms on the basis of control system model development, optimizations methods of their direct quality indices and improved integral quadratic estimates. Some mathematical vector models were obtained for control system multicriterion quality indices with due ...

متن کامل

Using Search-Based Test Generation to Discover Real Faults in Guava

Testing costs can be reduced through automated unit test generation. An important benchmark for such tools is their ability to detect real faults. Fault databases, such as Defects4J, assist in this task. The Guava project—a collection of Java libraries from Google—offers an opportunity to expand such databases with additional complex faults. We have identified 11 faults in the Guava project, ad...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2015